package org.jeecg.modules.alarmGroup.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.alarmGroup.entity.AlarmGroup;
import org.jeecg.modules.alarmGroup.mapper.AlarmGroupMapper;
import org.jeecg.modules.alarmGroup.service.IAlarmGroupService;
import org.springframework.stereotype.Service;

/**
 * @Description: 班组
 * @Author: jeecg-boot
 * @Date:   2023-10-26
 * @Version: V1.0
 */
@Service
public class AlarmGroupServiceImpl extends ServiceImpl<AlarmGroupMapper, AlarmGroup> implements IAlarmGroupService {

    @Override
    public AlarmGroup getByRound(String round) {
        LambdaQueryWrapper<AlarmGroup> wrapper = Wrappers.lambdaQuery();
        wrapper.eq(AlarmGroup::getRound, round);
        return baseMapper.selectOne(wrapper);
    }

}
